package main

import (
	"boticz/app/global/variable"
	_ "boticz/bootstrap"
	_ "boticz/docs/admin"
	_ "boticz/docs/app"
	_ "boticz/docs/web"

	"github.com/gin-gonic/gin"
)

func main() {
	router := gin.Default()
	router.StaticFile("/swagger-ui", "./public/swagger.html")
	router.StaticFile("/swagger/app/doc.json", "./docs/app/app_swagger.json")
	router.StaticFile("/swagger/web/doc.json", "./docs/web/web_swagger.json")
	router.StaticFile("/swagger/admin/doc.json", "./docs/admin/admin_swagger.json")

	router.Run(variable.ConfigYml.GetString("HttpServer.OpenApi.Port"))
}
